package redis;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/7/19 11:24
 */

public class RedisPorxy {
    public static void main(String[] args){
        try {
            ServerSocket serverSocket=new ServerSocket(6380);
            while(true){
                Socket socket=serverSocket.accept();
                ConnectThread connectThread=new ConnectThread(socket);
                new Thread(connectThread).start();
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
